package com.ccc.ka.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccc.ka.entity.Records;
import com.ccc.ka.mapper.RecordsMapper;
import com.ccc.ka.service.IRecordsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ccc
 * @since 2023-02-28
 */
@Service
public class RecordsServiceImpl extends ServiceImpl<RecordsMapper, Records> implements IRecordsService {
    @Autowired
    RecordsMapper recordsMapper;
    @Override
    public Page<Records> getRecordsPage(Page<Records> page, Records records) {
        return recordsMapper.getRecordsPage(page, records);
    }

    @Override
    public List<Records> getRecordsTotalForUserOrTeam(Records records) {
        return recordsMapper.getRecordsTotalForUserOrTeam(records);
    }
}
